//C11.19:stonewt1.h -- revised definition
#ifndef STONEWT1_H__
#define STONEWT1_H__
#include "stonewt.h"

class Stonewt
{
    enum { Lbs_per_stn = 14 };        // pounds per stone
    int stone;                        // whole stones
    double pds_left;                  // fractional pounds
    double pounds;                    // entire weight in pounds
    public:
        Stonewt(double lbs);          // constructor from double pounds
        Stonewt(int stn, double lbs)  // constructor from stone, lbs
        Stonewt();                    // default constructor
        ~Stonewt();                   // destructor
        void show_lbs() const;        // show weight in pounds format
        void show_stn() const;        // show weight in stone format
    // conversion functions
        operator int() const;
        operator double() const;   
};
#endif